<!DOCTYPE html><html><head>
	<meta charset="utf-8">
 <link rel="icon" href="https://static.jianshukeji.com/highcharts/images/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">	<meta name="description" content="">
	<title>瀑布图</title>
	<script src="https://img.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
	<script src="https://img.hcharts.cn/highcharts/highcharts.js"></script>
	<script src="https://img.hcharts.cn/highcharts/highcharts-more.js"></script>
	<script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>
	<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
</head>
<body>
<!--
*************************************************************************
    Generated by HCODE at 2017-07-31 10:11:25
    From: https://code.hcharts.cn/demos/hhhhic
*************************************************************************
-->
<div id="container" style="min-width: 310px; max-width: 600px; height: 400px; margin: 0 auto"></div>

	<script>
	$(function () {
    $('#container').highcharts({
        chart: {
            type: 'waterfall'
        },
        title: {
            text: 'Highcharts 瀑布图'
        },
        xAxis: {
            type: 'category'
        },
        yAxis: {
            title: {
                text: 'USD'
            }
        },
        legend: {
            enabled: false
        },
        tooltip: {
            pointFormat: '<b>${point.y:,.2f}</b> USD'
        },
        series: [{
            upColor: Highcharts.getOptions().colors[2],
            color: Highcharts.getOptions().colors[3],
            data: [{
                name: '启动资金',
                y: 120000
            }, {
                name: '产品收入',
                y: 569000
            }, {
                name: '服务收入',
                y: 231000
            }, {
                name: '正平衡',
                isIntermediateSum: true,
                color: Highcharts.getOptions().colors[1]
            }, {
                name: '固定成本',
                y: -342000
            }, {
                name: '可变成本',
                y: -233000
            }, {
                name: '余额',
                isSum: true,
                color: Highcharts.getOptions().colors[1]
            }],
            dataLabels: {
                enabled: true,
                formatter: function () {
                    return Highcharts.numberFormat(this.y / 1000, 0, ',') + 'k';
                },
                style: {
                    color: '#FFFFFF',
                    fontWeight: 'bold',
                    textShadow: '0px 0px 3px black'
                }
            },
            pointPadding: 0
        }]
    });
});
</script>

</body></html>